﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using ProductFileObjectModel;

namespace ApplDbConvertors
{
    public static class DbToApplConvertor
    {
        public static OMUser ConvertDbUserToApplUser(User dbUser)
        {
            OMUser applUser = new OMUser();
            applUser.Password = dbUser.Password;
            applUser.UserName = dbUser.UserName;
            applUser.UserType = OMUser.ConvertUserNameToEnum(dbUser.UserType);
            return applUser;

        }
    }
}
